#include "myhomeclose.h"

MyHomeClose::MyHomeClose(QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	flag=0;
	connect(ui.toolButton,SIGNAL(clicked()),this,SLOT(OnError()));
	connect(ui.toolButton_2,SIGNAL(clicked()),this,SLOT(OnOk()));
}

MyHomeClose::~MyHomeClose()
{

}

int MyHomeClose::OnError()
{
	flag=0;
	hide();
	return 0;
}

int MyHomeClose::OnOk()
{
	flag=1;
	hide();
	return 0;
}
